DIO#.INV
Description
Sets or gets the polarity of a bi-directional I/O when configured as a digital input (see DIO#.DIR).
Value | Description |
---|---|
0 - Active high | The digital input state is 1 when voltage is applied to the IO pin |
1 - Active low | The digital input state is 1 when voltage is removed from the IO pin |
Examples
Usage
When DIO#.DIR = 0 (input) then the corresponding DIO#.INV can be set to change the polarity of the input signal.
Code
--> DIO1.DIR 0
With 24V on DIO1:
--> DIO1.INV 0 //Active high --> DIO1.STATE 1 --> DIO1.INV 1 //Active low --> DIO1.STATE 0
With 0V on DIO1:
--> DIO1.INV 0 //Active high --> DIO1.STATE 0 --> DIO1.INV 1 //Active low --> DIO1.STATE 1
Context
For more information see Digital Inputs and Outputs.
Versions
Action | Version | Notes |
---|---|---|
Implemented | 02-00-00-000 |
General Information
Type | Read/Write |
Units | N/A |
Range | 0 to 1 |
Default Value | 0 |
Data Type | Integer |
See Also | |
Stored in Non-Volatile Memory |
Yes |
Variants Supported
All variants are supported
Fieldbus Information
Command |
Index |
SubIndex |
Data Type |
Units |
Float Scale |
Access |
PDO Mappable |
---|---|---|---|---|---|---|---|
DIO1.INV |
368ah |
02h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO2.INV |
368bh |
02h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO3.INV |
368ch |
02h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO4.INV |
368dh |
02h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO5.INV |
368eh |
02h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO6.INV |
368fh |
02h |
Unsigned8 |
- |
- |
Read/Write |
No |
ID |
Instance |
Attribute |
Name |
Data Type |
Access |
User Mappable |
---|---|---|---|---|---|---|
22100 |
1 |
22100 (0x5654) |
DIO1.INV |
Unsigned8 |
Read/Write |
Yes |
22101 |
1 |
22101 (0x5655) |
DIO2.INV |
Unsigned8 |
Read/Write |
Yes |
22102 |
1 |
22102 (0x5656) |
DIO3.INV |
Unsigned8 |
Read/Write |
Yes |
22103 |
1 |
22103 (0x5657) |
DIO4.INV |
Unsigned8 |
Read/Write |
Yes |
22104 |
1 |
22104 (0x5658) |
DIO5.INV |
Unsigned8 |
Read/Write |
Yes |
22105 |
1 |
22105 (0x5659) |
DIO6.INV |
Unsigned8 |
Read/Write |
Yes |
Parameter |
PNU |
Data Type |
Access |
Units |
---|---|---|---|---|
DIO1.INV |
22100 |
Unsigned8 |
Read/Write |
- |
DIO2.INV |
22101 |
Unsigned8 |
Read/Write |
- |
DIO3.INV |
22102 |
Unsigned8 |
Read/Write |
- |
DIO4.INV |
22103 |
Unsigned8 |
Read/Write |
- |
DIO5.INV |
22104 |
Unsigned8 |
Read/Write |
- |
DIO6.INV |
22105 |
Unsigned8 |
Read/Write |
- |